home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
328_01
/
wbuttonm.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
672b
|
52 lines
/* WBUTTONM.C
*
* contains wbutton_mark ()
*
* function to place a tickmark onscreen next to a button.
*
*/
#include "wsys.h"
void wbutton_mark ( int uval, char mark )
{
unsigned char ux, uy;
WBUTTON *Bptr;
int true_y;
Bptr = wbutton_getptr ( uval );
if ( Bptr )
{
true_y = Bptr->By;
if ( Bptr->Bstyle & WBTN_BOX )
{
/* 2 lines for this button;
*/
++true_y;
}
ux = wherex(); /* save caller text position*/
uy = wherey();
wgoto ( (Bptr-> Bx) -1, true_y);
wputc (mark);
wgoto ( ux,uy ); /* restore caller text pos. */
}
return; /* wbutton_mark () */
}